package org.example.modules.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.example.modules.user.entry.UserAddress;

import java.util.List;

/**
 * @Description UserAddressMapper
 * @Author xiaotian
 * @Date 2025-04-17
 */
@Mapper
public interface UserAddressMapper extends BaseMapper<UserAddress> {
    List<UserAddress> selectAll(Integer userId);

    void updateDefault(Integer userId);

    void updateIsDefault(Integer userId, Integer Id);
}
